import { ReactNode } from "react";
import { LazyRouteFunction, NonIndexRouteObject } from "react-router-dom";

export interface RouteConfig {
    path: string;
    element?: ReactNode;
    lazy?: LazyRouteFunction<NonIndexRouteObject>
    auth: boolean;
    children?: RouteConfig[];
    redirect?:string
  }